<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$title}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    {css href="/static/admin/layui/css/layui.css,/static/admin/css/public.css" /}
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">角色名</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input title" name="title" lay-verify="required" placeholder="请输入角色名">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">角色描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入角色描述" name="describe" class="layui-textarea describe"></textarea>
        </div>
    </div>
    <div class="layui-row">
        <div class="magb15 layui-col-md4 layui-col-xs12">
            <label class="layui-form-label">角色状态</label>
            <div class="layui-input-block status">
                <input type="radio" name="status" value="1" title="正常使用" checked>
                <input type="radio" name="status" value="0" title="限制使用">
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">角色权限</label>
        <div class="layui-input-block" style="overflow-y: auto;height: 400px;">
            <div id="rule"></div>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addGroup">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
        </div>
    </div>
</form>
<script>
	var layout = [
		{name: '权限名称', treeNodes: true, headerClass: 'value_col', colClass: 'value_col', style: ''}
	];
	var RULES_URL = "{:url('group/rule')}";
	var GROUP_ADD_URL = "{:url('group/add')}";
</script>
{js href="/static/admin/layui/layui.js,/static/admin/liunk/groupAdd.js" /}
</body>
</html>